package sysu.el.graph.datagraph;

import sysu.el.array.idx.ArrIdx;
import sysu.el.array.ints.ArrInt;

public class Data<T> {
	public ArrIdx idxes;
	public T data;

	public int[] getIdxes(int num, int [] idx){
		int[] newIdx = new int[num];
		int[] list = idxes.elements();
		for (int i=0; i<num; i++){
			newIdx[i] = list[idx[i]];
		}
		return newIdx;
	}

	public Data(ArrIdx idx, T t){
		idxes = idx;
		this.data = t;
	}

	public Data(){

	}

}
